package de.lot.action;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.web.RequestParameter;
import org.jboss.seam.framework.EntityHome;

import de.lot.model.Role;

/**
 * Class for interaction between UI and back-end for a User-Role
 *
 * @see Role
 * @author Stefan Kohler <kohler.stefan@gmail.com>
 */
@Name("roleHome")
public class RoleHome extends EntityHome<Role>
{

    @RequestParameter 
    Long roleId;
    
    @Override
    public Object getId() 
    { 
        if (roleId==null)
        {
            return super.getId();
        }
        else
        {
            return roleId;
        }
    }
    
    @Override @Begin
    public void create() {
        super.create();
    }

}
